</script>
<h1 style="margin:0 0 15px;">อัลบั้ม</h1>
	<table class="form">
		<tr>
			<th>อีเมล์</th>
			<td>
				<?php echo $email->email ?> 
			</td>
		</tr>
		<tr>
			<th>ชุดคำถาม</th>
			<td>
				<?php echo $email->question_category->name ?>
			</td>
		</tr>
		<?php foreach($email->answer as $key => $answer): ?>
		<tr>
			<th>คำถามที่ <?php echo ++$key ?></th>
			<td>
				<?php echo $answer->question->title ?>
			</td>
		</tr>
		<tr>
			<th> </th>
			<td>
				ตอบ <?php echo $answer->answer ?>
			</td>
		</tr>
		<?php endforeach; ?>
		<tr>	
			<th></th>
			<td>
				<?php echo form_button('',lang('btn_back'),'class="button" onclick="window.location = \'questions/admin/questions/answer_index/'.$email->question_category_id.'\'"')?>
			</td>
		</tr>
	</table>

